import axios from '@/libs/api.request'
//保存或更新角色
export const saveRoleInfo = (data) => {
  return axios.request({
    url: 'sysRole/saveRoleInfo',
    method: 'post',
    data
  })
}
//保存或更新角色
export const getRoleList = (data) => {
  return axios.request({
    url: 'sysRole/getRoleList',
    method: 'post',
    data
  })
}
//保存用户与角色的关系
export const saveUserRole = (data) => {
  return axios.request({
    url: 'sysUserRole/saveUserRole',
    method: 'post',
    data
  })
}
